import 'package:flutter/material.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBColor/YBColor.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBImageStyle/YBImageStyle.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBTextStyle/YBTextStyle.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/yb_chinese_text/yb_chinese_text.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBModule/YBFindModule/YBFindSubPage/YBFindSubFPage.dart';

class YBFindMainPage extends StatefulWidget {
  @override
  _YBFindMainPageState createState() => _YBFindMainPageState();
}

class _YBFindMainPageState extends State<YBFindMainPage> {
  @override
  Widget build(BuildContext context) {
    return Container(
        child: Scaffold(
          appBar: AppBar(
            elevation: 0,
            title: Text(YBChineseText.findQuanCengTitle),
            actions: [
              InkWell(
                child: Container(
                  child: Image.asset(YBImageStyle.getImagePath('faxian_xierushuju')),
                ),
              ),
            ],
          ),
          body: Container(
            color: YBColor.commonPageBackGroundColor,
            child: Padding(
              padding:EdgeInsets.only(left: YBTextStyle.adapterSize20,right: YBTextStyle.adapterSize20),
              child: ListView(
                padding:EdgeInsets.only(top: YBTextStyle.adapterSize10),
                children: [
                  Container(
                    height: YBTextStyle.adapterSize10,
                  ),
                  Container(
                    decoration: BoxDecoration(
                      borderRadius: BorderRadius.circular(YBTextStyle.adapterSize8),
                       color: YBColor.white,
                    ),
                    child: YBFindSubFPage(imageStr: "fanxianquancengImage",titleStr: "掌上圈层",subImageStr: "随便输局",),
                  ),
                  Container(
                    height: YBTextStyle.adapterSize16,
                  ),
                  Container(
                    decoration: BoxDecoration(
                      borderRadius: BorderRadius.circular(YBTextStyle.adapterSize8),
                      color: YBColor.white,
                    ),
                    child: YBFindSubFPage(imageStr: "faixianUwugou",titleStr: "U物购"),
                  ),

                  Container(
                    height: 16,
                  ),
                  Container(
                    decoration: BoxDecoration(
                      borderRadius: BorderRadius.circular(8.0),
                      color: YBColor.white,
                    ),
                    child: Column(
                      children: [
                        YBFindSubFPage(imageStr: "faxiantaobaoImage",titleStr: "淘宝省钱"),
                        YBFindSubFPage(imageStr: "faxiantianmaoshengqian",titleStr: "天猫省钱"),
                        YBFindSubFPage(imageStr: "faxianjuhuasuan",titleStr: "聚划算"),
                        YBFindSubFPage(imageStr: "faxian9.9baoyou",titleStr: "9.9包邮"),
                      ],
                    ),
                  ),
                ],
              ),
            ),
          ),
        ),
    );
  }
}
